<?php
namespace app\model;

use think\model\concern\SoftDelete;
class Product extends BaseModel
{
    use SoftDelete;
    protected $deleteTime='delete_time';
    protected $autoWriteTimestamp = true;
    
    public function specshas()
    {
        /**
         * 1对1关联
        */
       // return $this->hasOne(ProductSpecs::class);
        //1对多关联
        return $this->hasMany(ProductSpecs::class,'product_id')->visible(['specs_value_id']);;
    }
}